package com.foreknow.service.impl;

import com.foreknow.dao.ConstanttypeMapper;
import com.foreknow.entity.Constanttype;
import com.foreknow.service.ConstantTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ConstantTypeServiceImpl implements ConstantTypeService {
    @Autowired
    private ConstanttypeMapper constanttypeMapper;
    @Override
    public int insertConstantType(Constanttype constanttype) {
        return constanttypeMapper.insertConstantType(constanttype);
    }

    @Override
    public int deleteConstantType(Integer id) {
        return constanttypeMapper.deleteConstantType(id);
    }

    @Override
    public int updaterConstantType(Constanttype constanttype) {
        return constanttypeMapper.updaterConstantType(constanttype);
    }

    @Override
    public List<Constanttype> searchAll(String query) {
        return constanttypeMapper.searchAll(query);
    }

    @Override
    public Constanttype selectById(Integer id) {
        return constanttypeMapper.selectById(id);
    }
}
